package com.ubo.uspeed;

import java.util.ArrayList;
import java.util.List;

import com.ubo.java.model.EModifier;
import com.ubo.java.model.EVisibility;
import com.ubo.java.model.classifier.EPrimitiveTypes;

public class Methode {

	protected String mName;
	protected EPrimitiveTypes mType;
	protected List<UAttribute> listA;
	protected EVisibility mVis;
	protected EModifier mMod;

	public Methode(String mName) {
		this.mName = mName;
		listA = new ArrayList<UAttribute>();
	}

	public Methode(String mName, EPrimitiveTypes type) {
		this.mName = mName;
		this.mType = type;
		listA = new ArrayList<UAttribute>();
	}

	public String getmName() {
		return mName;
	}

	public void setmName(String mName) {
		this.mName = mName;
	}

	public List<UAttribute> getListA() {
		return listA;
	}

	public void setListP(List<UAttribute> listA) {
		this.listA = listA;
	}

	public EPrimitiveTypes getmType() {
		return mType;
	}

	public void setmType(EPrimitiveTypes mType) {
		this.mType = mType;
	}

	public void accept(Visiteur v) {
		v.visitMethode(this);
	}

	public EVisibility getmVis() {
		return mVis;
	}

	public void setmVis(EVisibility mVis) {
		this.mVis = mVis;
	}

	public EModifier getmMod() {
		return mMod;
	}

	public void setmMod(EModifier mMod) {
		this.mMod = mMod;
	}
}
